package com.alex.insistence.rest.common;

import javax.xml.bind.annotation.XmlRootElement;

import com.gomore.jeecg.common.ExceptionCode;

/**
 * 异常代码。
 * 
 * @author Debenson
 * @since 0.1
 */
@XmlRootElement
public class MyExceptionCode extends ExceptionCode {
  private static final long serialVersionUID = 452472665402145715L;

  /** 微信小程序相关，代码1000~1999 */
  public static final ExceptionCode notSetWeAppAccount = new ExceptionCode(1000, "未配置微信小程序账户");
  public static final ExceptionCode notSetHdParter = new ExceptionCode(1001, "未配置小程序的鼎力云商户");
  public static final ExceptionCode wxAppAccountNotFound = new ExceptionCode(1002, "没有找到指定的小程序账户");
  public static final ExceptionCode loginCodeHasUsed = new ExceptionCode(1003, "登录码已经被使用");
  public static final ExceptionCode notConfigCardService = new ExceptionCode(1004, "未配置小程序卡系统服务路径");

  /** 目标计划单相关，代码2000~2999 */

  public static final ExceptionCode goalPlanNotFound = new ExceptionCode(2000, "目标计划单未找到");
  public static final ExceptionCode goalPlanStateNotSaved = new ExceptionCode(2001, "目标计划单不是已保存状态的");
  public static final ExceptionCode goalPlanStateNotSubmited = new ExceptionCode(2001, "目标计划单不是已提交状态的");

}
